home *** CD-ROM | disk | FTP | other *** search
/ Aminet 2 / Aminet AMIGA CDROM (1994)(Walnut Creek)[Feb 1994][W.O. 44790-1].iso / Aminet / util / misc / Fudgit233.lha / Source / src / Makefile.ultrix < prev    next >
Encoding:
Makefile  |  1993-12-14  |  2.4 KB  |  95 lines

  1. ##############################
  2. # ULTRIX Makefile for FUDGIT
  3. ###############################
  4. #
  5. # macro definitions
  6. LDFLAGS = -lm -Lreadline/ -lreadline -ltermcap -lmalloc 
  7. # C compiling flags
  8. # ULTRIX compiler I got does not support 'const' declarator and
  9. # did not have the \a sequence for a bell
  10. CFLAGS = $(OPT) -Dconst= -DNOALERTCHAR
  11. # Final compiling flags
  12. FCFLAGS =  $(OPT) -Dconst=
  13. # READLINE CFLAGS for SUN
  14. READLINE = OTH_CFLAGS="-Dconst= $(VI_MODE)"  # nothing required
  15. DLDFLAGS = CFLAGS="-g -I."
  16. DLFLAGS = CFLAGS="-g -I.."
  17.  
  18. # You should not need to edit anything below that line (except for sunos 3.5)
  19. # Compiler: Use gcc if you want dynamic loader to work.
  20. OBJECTS = mathparse.o fudgit.o alloc.o setshow.o vgetargp.o plot.o \
  21.     fits.o fit.o svdfit.o medfit.o help.o mrqmin.o \
  22.     command.o code.o math.o lexi.o init.o fft.o macro.o minit.o \
  23.     spline.o readline2.o chd.o if.o strings.o
  24.  
  25. # Guess
  26. SHELL = /bin/sh
  27. # Default compiler
  28. CC = cc
  29. YFLAGS = -d
  30. DATE = `cat ../Date`
  31. VERSION = `cat ../Version`
  32.  
  33. all: 
  34.     (cd readline; $(MAKE) CC="$(CC)" $(READLINE))
  35.     $(MAKE) -f Makefile.ultrix CC="$(CC)" ../fudgit
  36.  
  37. ../fudgit: $(OBJECTS) fudgit.h setshow.h readline/libreadline.a
  38.     $(CC) $(FCFLAGS) -o ../fudgit $(OBJECTS) $(LDFLAGS)
  39.  
  40. code.o: code.h math.tab.h symbol.h
  41.     $(CC) -c $(CFLAGS) $(POP) code.c
  42.  
  43. command.o: symbol.h code.h macro.h fudgit.h math.tab.h setshow.h help.h \
  44.     install.dummy.c
  45.  
  46. fft.o: math.tab.h code.h symbol.h fudgit.h setshow.h dalloca.h
  47.  
  48. fits.o: symbol.h code.h fudgit.h math.tab.h setshow.h
  49.  
  50. fudgit.o: fudgit.h macro.h ../Date fudgit.c ../Version
  51.     $(CC) $(CFLAGS) -DDATE="\"$(DATE)\"" -DVERSION="\"$(VERSION)\"" -c fudgit.c
  52.  
  53. help.o: help.h fudgit.h help.c
  54.     $(CC) $(CFLAGS) -DHELPFILE="\"$(LIBDIR)/fudgit.help\"" -c help.c
  55.  
  56. if.o: fudgit.h
  57.  
  58. init.o: symbol.h code.h math.tab.h fudgit.h
  59.  
  60. lexi.o: symbol.h code.h fudgit.h math.tab.h
  61.  
  62. macro.o: macro.h fudgit.h setshow.h
  63.  
  64. math.o: fudgit.h 
  65.  
  66. mathparse.o: symbol.h code.h parse.y
  67.     yacc $(YFLAGS) parse.y
  68.     cat y.tab.c | sed s/yy/Ft_mathyy/g > mathparse.c
  69.     rm y.tab.c 
  70.     $(CC) $(CFLAGS) -Olimit 1000 -c mathparse.c
  71.  
  72. medfit.o: dalloca.h
  73.  
  74. minit.o: macro.h setshow.h
  75.  
  76. mrqmin.o: dalloca.h
  77.  
  78. chd.o: fudgit.h
  79.  
  80. plot.o: fudgit.h setshow.h macro.h
  81.  
  82. setshow.o: symbol.h code.h fudgit.h math.tab.h setshow.h macro.h functions.h
  83.  
  84. spline.o: symbol.h code.h fudgit.h math.tab.h command.h dalloca.h
  85.  
  86. svdfit.o: dalloca.h
  87.  
  88. vgetarg.o: fudgit.h macro.h
  89.  
  90. math.tab.h: y.tab.h
  91.     cat y.tab.h | sed s/yy/Ft_mathyy/g > math.tab.h
  92.  
  93. y.tab.h: mathparse.o
  94.  
  95.